//
//  PositionAndSizeConstants.h
//  PacIsBack
//
//  Created by Simon André on 08/02/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#pragma mark -
#pragma mark width and positions

#define iphoneWidth 480.0
#define iphoneHeight 320.0
#define textHeight 20.0
#define creditSectionTextSize 30
#define iphoneHalfWidth iphoneWidth/2
#define damageViewWidth 32.0

#pragma mark -
#pragma mark player team width and positions

#define playerTeamPositionX 320.0
#define playerTeamPositionY 200.0
#define playerTeamWidth 150.0
#define playerTeamHeight 150.0

#pragma mark -
#pragma mark ennemy team width and positions

#define ennemyTeamPositionX 0.0
#define ennemyTeamPositionY 200.0
#define ennemyTeamWidth 150.0
#define ennemyTeamHeight 150.0

#pragma mark -
#pragma mark characters positions in teams

#define firstCharacterPositionX 0.0
#define firstCharacterPositionY 0.0
#define secondCharacterPositionX 0.0
#define secondCharacterPositionY 0.0
#define thirdCharacterPositionX 100.0
#define thirdCharacterPositionY 50.0

#pragma mark -
#pragma mark life and mana bars width and positions

#define lifeBarsViewWidth 32.0
#define lifeBarsViewHeight 4.0
#define lifeBarPositionX 0.0
#define lifeBarPositionY 0.0
#define manaBarPositionX 0.0
#define manaBarPositionY 2.0

#pragma mark -
#pragma mark battle result image width and positions

#define resultImageInitialPositionX 0
#define resultImageInitialPositionY -iphoneHeight
#define resultImageTravelDuration 3.0
#define infoBarHeight 100.0
#define infoBarWidth iphoneWidth

#pragma mark -
#pragma mark informations bar width and positions

#define textsInInfoBarPositionX 5.0
#define textsInInfoBarPositionY textsInInfoBarPositionX
#define textsInInfoBarWidth (infoBarWidth - (2*textsInInfoBarPositionX))
#define textsInInfoBarHeight (infoBarHeight - (2*textsInInfoBarPositionY))

#define characterHeadImageWidth 72
#define characterHeadImageHeight 62
#define characterHeadImagePositionX 0.0
#define characterHeadImagePositionY 0.0

#define characterIconWidth 72
#define characterIconHeight characterHeadImageHeight+3*textHeight
#define characterIconPositionX 20.0
#define characterIconPositionY textsInInfoBarPositionY

#define actionListPositionX characterIconPositionX+characterIconWidth+20.0
#define actionListPositionY characterIconPositionY
#define actionListWidth textsInInfoBarWidth-(actionListPositionX+20.0)
#define actionListHeight characterIconHeight

#define attackDistanceGap 40.0

#pragma mark -
#pragma mark movements length and durantion

#define attackAnimationTimeInterval 0.2 
#define damageViewTravelHeight -100.0
#define damageViewTravelDuration 0.5
#define animateMoveRightInterval 0.2
#define animateMoveLeftInterval animateMoveRightInterval
#define animateStandInterval 1
#define animateSelectedInterval 1

#pragma mark -
#pragma mark Animation

#define moveIncrement 10.0
#define moveIncrementDuration 0.025
